package com.zzyl.serve.task;

import com.zzyl.serve.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Component("reservationStatus")
public class ReservationStatus {
    @Autowired
    private IReservationService reservationService;
    //更新预约状态
    @Transactional
    public void updateReservationStatus()
    {
        log.info("更新预约状态");
        reservationService.updateReservationStatus();
    }
}
